package com.heu.blood.analysis.exception;

import com.heu.blood.globalExceptionHandler.BaseErrorInfoInterface;

/**
 * @author lhh
 * @email lyj@heu.com
 * @date 2024-07-15 00:26:49
 * 检验模块的异常枚举类--全部以112开头
 */
public enum AnalysisExceptionEnum implements BaseErrorInfoInterface {
    ILLEGAL_PARAMS("1120","生成血液样本ID失败原因为applicationId查询的输血申请单实体为空"),
    DICT_NULL_POINTER("1121", "BloodTest的queryPatientTestResult接口出问题原因为DICT解析后为空指针，即字典里没有该内容"),
    BLOOD_SAMPLE_ID_ILLEGAL_PARAMS("1122", "bloodSampleId参数不合格,为null或者为''"),

    BLOOD_SAMPLE_ENTITY_NULL_POINTER("1123", "bloodSampleInfoTransfusionEntity为null"),
    NOT_FULLY_APPROVED("1124","审核尚未全部通过"),

    NO_SAMPLE_LINKED("1125","当前申请单暂未绑定样本信息"),
    NO_APPLICATION("1126","无对应申请单");

    AnalysisExceptionEnum(String resultCode, String resultMsg){
        this.resultCode = resultCode;
        this.resultMsg = resultMsg;
    }

    // 错误码
    private final String resultCode;

    // 错误提示
    private final String resultMsg;
    @Override
    public String getResultCode() {
        return resultCode;
    }

    @Override
    public String getResultMsg() {
        return resultMsg;
    }
}
